package top.lingkang.finaloauth.server.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import top.lingkang.finaloauth.server.base.ClientRepository;
import top.lingkang.finaloauth.server.base.impl.MemoryClientRepository;

/**
 * @author lingkang
 * Created by 2022/3/18
 */
public class InitOauthServerConfig {

    // 默认存储在内存中
    @ConditionalOnMissingBean
    public ClientRepository clientRepository(){
        return new MemoryClientRepository();
    }

}
